.digital-twin {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, #000814 0%, #001233 100%);
  color: #fff;
}

.digital-twin__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.digital-twin__bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridMove 40s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(80px, 80px);
  }
}

.digital-twin__bg-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  animation: glowFloat 20s ease-in-out infinite;
}

.digital-twin__bg-glow--1 {
  top: -350px;
  left: -350px;
  background: radial-gradient(circle, #00d4ff 0%, transparent 70%);
  animation-delay: 0s;
}

.digital-twin__bg-glow--2 {
  bottom: -350px;
  right: -350px;
  background: radial-gradient(circle, #00ff88 0%, transparent 70%);
  animation-delay: 10s;
}

@keyframes glowFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(100px, 100px) scale(1.2);
  }
}

.digital-twin__header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 2px solid rgba(0, 212, 255, 0.3);
  backdrop-filter: blur(15px);
}

.digital-twin__back {
  font-size: 16px;
  color: #00d4ff;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 4px;
  background: rgba(0, 212, 255, 0.1);
}

.digital-twin__back:hover {
  background: rgba(0, 212, 255, 0.25);
  border-color: #00d4ff;
  transform: translateX(-5px);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.digital-twin__title {
  font-size: 36px;
  font-weight: bold;
  background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
  animation: titleGlow 3s ease-in-out infinite;
  letter-spacing: 2px;
}

@keyframes titleGlow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.4);
  }
}

.digital-twin__time {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Courier New', monospace;
}

.digital-twin__scene {
  position: relative;
  z-index: 5;
  width: 100%;
  height: calc(100vh - 140px);
  padding: 0;
  overflow: hidden;
}

.digital-twin__footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(0, 212, 255, 0.3);
  backdrop-filter: blur(15px);
}

.digital-twin__footer p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  letter-spacing: 3px;
}

@media (max-width: 768px) {
  .digital-twin__header {
    padding: 15px 20px;
  }

  .digital-twin__title {
    font-size: 24px;
  }

  .digital-twin__scene {
    height: calc(100vh - 120px);
  }
}
